package org.tong.account.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import org.tong.account.AccountServiceI;
import org.tong.account.service.AccountService;
import org.tong.account.service.AccountTccService;

/**
 * @author
 * @date 2022-12-21 16:51
 */
@RestController
public class AccountServiceController implements AccountServiceI {

    @Autowired
    private AccountService accountService;

    @Override
    public void addAccount(Long id, String name) {
        accountService.addAccount(id, name);
    }


    @Autowired
    private AccountTccService accountTccService;

    @Override
    public void addAmount(Long id, Long amount) {
        accountTccService.addAmount(id, amount);
    }
}
